package com.zoro.k8sapp.commondto.common;

import java.util.Arrays;

/**
 * @author zhaoxingwu
 */
public class BriefInfo {

    /**
     * 程序监听的端口号
     */
    private int localPort;
    /**
     * 容器端口映射到主机的端口号
     */
    private int containerPort;
    /**
     * 本机IP
     */
    private String[] hostIp;
    /**
     * pod 在集群中的IP
     */
    private String clusterIp;
    /**
     * POD 的名字
     */
    private String podName;

    public int getLocalPort() {
        return localPort;
    }

    public void setLocalPort(int localPort) {
        this.localPort = localPort;
    }

    public int getContainerPort() {
        return containerPort;
    }

    public void setContainerPort(int containerPort) {
        this.containerPort = containerPort;
    }

    public String[] getHostIp() {
        return hostIp;
    }

    public void setHostIp(String[] hostIp) {
        this.hostIp = hostIp;
    }

    public String getClusterIp() {
        return clusterIp;
    }

    public void setClusterIp(String clusterIp) {
        this.clusterIp = clusterIp;
    }

    public String getPodName() {
        return podName;
    }

    public void setPodName(String podName) {
        this.podName = podName;
    }

    @Override
    public String toString() {
        return "BriefInfo{" +
                "localPort=" + localPort +
                ", containerPort=" + containerPort +
                ", hostname='" + Arrays.toString(hostIp) + '\'' +
                ", clusterIp='" + clusterIp + '\'' +
                ", podName='" + podName + '\'' +
                '}';
    }
}
